import Log from "../constants/log.js";
import {
	navigateToEid,
	reportStat
} from "../utils/index";
export default {
	data() {
		return {
			token: ""
		}
	},
	onLoad(t) {
		var {
			token: t,
			needJumpPage: e
		} = t;
		this.token = t, uni.reportLogToEid({
			token: t,
			event: Log.getIntoIndexPage,
			errMsg: `进入配置首页,token:${t},needJumpPage:` + e
		}), reportStat({
			module: "StartIndex",
			action: "enter"
		})
	},
	onUnload() {
		reportStat({
			module: "StartIndex",
			action: "leave"
		})
	},
	methods: {
		handleStart() {
			navigateToEid(this.token)
		}
	}
};